package negocio;

public class NotaExamen 
{
	private int id; //Autogenerado
	private Examen examen;
	private Alumno alumno;
	private double nota;
	
	public NotaExamen(Examen examen, Alumno alumno, double nota)
	{
		this.examen = examen;
		this.alumno = alumno;
		this.nota = nota;
	}
	
	public NotaExamen(int id, Examen examen, Alumno alumno, double nota)
	{
		this.setId(id);
		this.examen = examen;
		this.alumno = alumno;
		this.nota = nota;
	}
	
	
	public Examen getExamen() {
		return examen;
	}
	public void setExamen(Examen examen) {
		this.examen = examen;
	}
	public Alumno getAlumno() {
		return alumno;
	}
	public void setAlumno(Alumno alumno) {
		this.alumno = alumno;
	}
	public double getNota() {
		return nota;
	}
	public void setNota(double nota) {
		this.nota = nota;
	}
	
	@Override
	public String toString()
	{
		Double ret = this.getNota();
		return ret.toString();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
